import request from '@/utils/common/request'
/**
 * 获取用户有无权限发布职位
 * @returns
 */
export function getEnterprisePublishPowerApi() {
  return request.get('/info/getEnterprisePublishPower')
}
/**
 * 获取电子营业执照列表
 */
export function getBusinessLicenseListApi(data) {
  return request({
    url: '/info/getBusinessLicenseList',
    params: data
  })
}
/**
 * 审核电子营业执照结果
 * @param {*} data
 * @returns
 */
export function auditBusinessLicenseApi(data) {
  return request({
    url: '/info/auditBusinessLicense',
    method: 'post',
    data
  })
}
/**
 * 发布职位
 */
export function insertJobApi(data) {
  return request.post('/info/insertJob', data)
}

/**
 * 获取企业发布的职位招聘
 */
export function getJobListApi(data) {
  return request({
    url: '/info/getJobList',
    params: data
  })
}
/**
 * 职位审核
 */
export function jobAuditApi(data) {
  return request({
    url: '/info/jobAudit',
    method: 'post',
    data
  })
}
/**
 * 申请职位
 */
export function applyJobApi(data) {
  return request({
    url: '/info/applyJob',
    method: 'post',
    data
  })
}

/**
 * 获取职位申请列表
 */
export function getApplyJobListApi(data) {
  return request({
    url: '/info/getApplyJobList',
    params: data
  })
}
/**
 * 判断是否已经申请过职位
 */
export function isApplyJobApi(data) {
  return request({
    url: '/info/isApplyJob',
    data,
    method: 'post'
  })
}
/**
 * 更新职位申请状态
 */
export function updateApplyJobStatusApi(data) {
  return request({
    url: '/info/updateApplyJobStatus',
    data,
    method: 'post'
  })
}
/**
 * 学生获取已经申请的职位的状态
 */

export function getApplyJobStatusApi(data) {
  return request({
    url: '/info/getApplyJobStatus',
    params: data
  })
}
/**
 * 企业填写面试信息
 */

export function fillInInterviewInfoApi(data) {
  return request({
    url: '/info/fillInInterviewInfo',
    method: 'post',
    data
  })
}
/**
 * 学生确认面试信息
 */
export function confirmInterviewApi(data) {
  return request({
    url: '/info/confirmInterview',
    method: 'post',
    data
  })
}
/**
 * 上传入职信息
 */
export function fillInEntryInfoApi(data) {
  return request({
    url: '/info/fillInEntryInfo',
    method: 'post',
    data
  })
}
/**
 * 获取实习材料信息
 */
export function getInternshipMaterialListApi(data) {
  return request({
    url: '/info/getInternshipMaterialList',
    params: data
  })
}
/**
 * 获取就业材料信息
 */
export function getEmploymentMaterialListApi(data) {
  return request({
    url: '/info/getEmploymentMaterialList',
    params: data
  })
}
/**
 * 上传实习材料信息
 */
export function uploadInternshipMaterialInfoApi(data) {
  return request({
    url: '/info/uploadInternshipMaterialInfo',
    method: 'post',
    data
  })
}
/**
 * 上传就业材料信息
 */
export function uploadEmploymentMaterialApi(data) {
  return request({
    url: '/info/uploadEmploymentMaterial',
    method: 'post',
    data
  })
}
/**
 * 删除实习材料
 */
export function deleteInternshipMaterialApi(data) {
  return request({
    url: '/info/deleteInternshipMaterial',
    method: 'post',
    data
  })
}
/**
 * 模糊查询实习材料
 */
export function fuzzyQueryApi(data) {
  return request({
    url: '/info/findInternshipMaterial',
    params: data
  })
}
/**
 * 模糊查询就业材料
 */
export function findEmploymentMaterialApi(data) {
  return request({
    url: '/info/findEmploymentMaterial',
    params: data
  })
}
/**
 * 获取实习报告列表
 */
export function studentFindInternshipMaterialApi(data) {
  return request({
    url: '/info/studentFindInternshipMaterial',
    params: data
  })
}
/**
 * 获取就业报告列表
 */
export function studentFindEmploymentMaterialApi(data) {
  return request({
    url: '/info/studentFindEmploymentMaterial',
    params: data
  })
}

/**
 * 学生上传实习材料信息
 */
export function uploadStudentInternshipMaterialsApi(data) {
  return request({
    url: '/info/uploadStudentInternshipMaterials',
    method: 'post',
    data
  })
}
/**
 * 学生上传就业材料信息
 */
export function uploadStudentEmploymentMaterialsApi(data) {
  return request({
    url: '/info/uploadStudentEmploymentMaterials',
    method: 'post',
    data
  })
}

// 辅导员获取学生提交实习材料信息
export function getStudentInternshipMaterialsApi(data) {
  return request({
    url: '/info/getStudentInternshipMaterials',
    params: data
  })
}

/**
 * 辅导员审核学生提交实习材料
 */
export function auditStudentInternshipMaterialApi(data) {
  return request({
    url: '/info/auditStudentInternshipMaterial',
    method: 'post',
    data
  })
}

/**
 * 获取学生实习报告列表
 */

export function getStudentWeeklyApi(data) {
  return request({
    url: '/info/getStudentWeekly',
    params: data
  })
}
/**
 * 学生提交实习周记
 */

export function submitStudentWeeklyApi(data) {
  return request({
    url: '/info/submitStudentWeekly',
    method: 'post',
    data
  })
}
/**
 * 获取学生实习周记
 */
export function getStudentWeeklyByCounselorApi(data) {
  return request({
    url: '/info/getStudentWeeklyByCounselor',
    params: data
  })
}
/**
 * 获取辅导员的名字和账号
 */
export function getAllCounselorInfoApi() {
  return request({
    url: '/info/getAllCounselorInfo'
  })
}
/**
 * 辅导员审核学生实习周记
 */
export function checkStudentWeeklyApi(data) {
  return request({
    url: '/info/checkStudentWeekly',
    method: 'post',
    data
  })
}
/**
 * 学生上传就业信息
 */
export function uploadNineYeInfoApi(data) {
  return request({
    url: '/info/uploadNineYeInfo',
    method: 'post',
    data
  })
}
/**
 * 学生获取个人就业信息
 */
export function getStudentNineYeInfoApi(data) {
  return request({
    url: '/info/getStudentNineYeInfo',
    params: data
  })
}
/**
 * 辅导员获取学生九爷信息
 */

export function getStudentWeeklyByCounselorInfoApi(data) {
  return request({
    url: '/info/getStudentWeeklyByCounselorInfo',
    params: data
  })
}
/**
 * 审核学生就业信息
 */
export function checkStudentNineYeInfoApi(data) {
  return request({
    url: '/info/checkStudentNineYeInfo',
    data,
    method: 'post'
  })
}
/**
 * 获取审核通过的职位
 */
export function getJobListPassApi() {
  return request({
    url: '/info/getJobListPass'
  })
}
/**
 * 是否入职
 */
export function isEntryApi(data) {
  return request({
    url: '/info/isEntry',
    data: data,
    method: 'post'
  })
}
/**
 * 获取面试记录
 */
export function getInterviewRecordApi(data) {
  return request({
    url: '/info/getInterviewRecord',
    params: data
  })
}
/**
 * 删除辅导员账号
 */
export function deleteEmploymentMaterialApi(data) {
  return request({
    url: '/info/deleteEmploymentMaterial',
    data: data,
    method: 'post'
  })
}
/**
 * 辅导员获取所有负责学生信息
 */
export function instructorGetStudentInfoApi(data) {
  return request({
    url: '/info/getStudentInfo',
    params: data,
    method: 'get'
  })
}

export function refreshApi(data) {
  return request({
    url: '/api/refresh',
    data: data,
    method: 'post'
  })
}
export function getStudentDetailApi(data) {
  return request({
    url: '/info/getStudentDetail',
    params: data
  })
}
export function getstudentStatusDataApi(data) {
  return request({
    url: '/info/getstudentStatusData',
    params: data
  })
}
export function getStudentWeeklyDetailApi(data) {
  return request({
    url: '/info/getStudentWeeklyDetail',
    params: data
  })
}
export function getApprovedMaterialsApi(data) {
  return request({
    url: '/info/getApprovedMaterials',
    params: data
  })
}
export function getApprovedEmploymentMaterialsApi(data) {
  return request({
    url: '/info/getApprovedEmploymentMaterials',
    params: data
  })
}
/**
 * 获取班级数据
 */
export function getStudentClassDataApi(data) {
  return request({
    url: '/info/getStudentClassData',
    params: data
  })
}
/**
 * 获取入职记录
 */
export function getEntryRecordFeedbackApi(data) {
  return request({
    url: '/info/getEntryRecordFeedback',
    params: data
  })
}
/**
 * 上传反馈记录
 */
export function uploadEntryRecordFeedbackApi(data) {
  return request({
    url: '/info/uploadEntryRecordFeedback',
    data: data,
    method: 'post'
  })
}
export function getEnterpriseAccountApi(data) {
  return request({
    url: '/info/getEnterpriseAccount',
    params: data
  })
}

export function getStudentByClassApi(data) {
  return request({
    url: '/info/getStudentByClass',
    params: data
  })
}

export function getStudentInternshipMaterialApi(data) {
  return request({
    url: '/info/getStudentInternshipMaterial',
    params: data
  })
}


export function getStudentEmploymentMaterialApi(data) {
  return request({
    url: '/info/getStudentEmploymentMaterial',
    params: data
  })
}
export function addAdminApi(data) {
  return request({
    url: '/info/addAdmin',
    data: data,
    method: 'post'
  })
}
export function deleteEmploymentsMaterialApi(data) {
  return request({
    url: '/info/deleteEmploymentsMaterial',
    data: data,
    method: 'post'
  })
}
